import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: '/Dictionary',
    component: resolve => require(['../components/common/Home.vue'], resolve),
    children: [{
      path: '/Dictionary',
      component: resolve => require(['../components/pages/Dictionary.vue'], resolve)
    }, {
      path: '/Classification',
      component: resolve => require(['../components/pages/Classification.vue'], resolve)
    }, {
      path: '/Module',
      component: resolve => require(['../components/pages/Module.vue'],resolve)
    }]
  }
    // {
    //   path: '/Dictionary',
    //   component: resolve => require(['../components/pages/Dictionary.vue'], resolve)
    // },
    // {
    //   path: '/Classification',
    //   component: resolve => require(['../components/pages/Classification.vue'], resolve)
    // },
    // {
    //   path: '/Module',
    //   component: resolve => require(['../components/pages/Module.vue'],resolve)
    // }
  ]
})
